package com.nomito.minimito.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nomito.minimito.common.utils.PageUtils;
import com.nomito.minimito.common.utils.Query;

import com.nomito.minimito.dao.AdBannerDao;
import com.nomito.minimito.entity.AdBannerEntity;
import com.nomito.minimito.service.AdBannerService;


@Service("adBannerService")
public class AdBannerServiceImpl extends ServiceImpl<AdBannerDao, AdBannerEntity> implements AdBannerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AdBannerEntity> page = this.page(
                new Query<AdBannerEntity>().getPage(params),
                new QueryWrapper<AdBannerEntity>()
        );

        return new PageUtils(page);
    }

}